package com.gnerv.sylvanas.framework.common.constants;

import java.time.format.DateTimeFormatter;

/**
 * @author Gnerv LiGen
 */
public class DateTimePattern {

    // 中横线连接符
    public static final DateTimeFormatter YYYY = DateTimeFormatter.ofPattern("yyyy");
    public static final DateTimeFormatter HYPHEN_YYYY_MM = DateTimeFormatter.ofPattern("yyyy-MM");
    public static final DateTimeFormatter HYPHEN_YYYY_MM_DD = DateTimeFormatter.ofPattern("yyyy-MM-dd");
    public static final DateTimeFormatter HYPHEN_SPACE_YYYY_MM_DD_HH = DateTimeFormatter.ofPattern("yyyy-MM-dd HH");
    public static final DateTimeFormatter HYPHEN_SPACE_COLON_YYYY_MM_DD_HH_MM = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
    public static final DateTimeFormatter HYPHEN_SPACE_COLON_YYYY_MM_DD_HH_MM_SS = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
    public static final DateTimeFormatter HYPHEN_SPACE_COLON_SPACE_YYYY_MM_DD_HH_MM_SS_SSS = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss SSS");
    public static final DateTimeFormatter HYPHEN_T_COLON_YYYY_MM_DD_HH_MM_SS = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss");

    // 下划线连接符
    public static final DateTimeFormatter UNDERSCORE_YYYY_MM = DateTimeFormatter.ofPattern("yyyy_MM");
    public static final DateTimeFormatter UNDERSCORE_YYYY_MM_DD = DateTimeFormatter.ofPattern("yyyy_MM_dd");

    // 斜线连接符
    public static final DateTimeFormatter SLASH_YYYY_MM = DateTimeFormatter.ofPattern("yyyy/MM");
    public static final DateTimeFormatter SLASH_YYYY_MM_DD = DateTimeFormatter.ofPattern("yyyy/MM/dd");


}
